package hu.bme.mit.mdsd.csipetcsapat.appstore.core;

import java.util.List;

/*
 * Implementation of TransactionCollection Collection containing Transaction elements 
 */
public class TransactionCollection {
	private List<Transaction> containment;
	
	/*
	 * Getter
	 */
	public List<Transaction> getCollection() {
		return this.containment;
	}
	
	/*
	 * Setter
	 */
	public void setCollection(List<Transaction> newContainment) {
		this.containment = newContainment;
	}
	
	/*
 	 * Add Transaction object to containment
	 */
	public void add(Transaction newObject) {
		this.containment.add(newObject);
	}
	
	/*
	 * Remove Transaction from containment
	 */
	public void remove(Transaction oldObject) {
		this.containment.remove(oldObject);
	}
}
